package com.ocom.company.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ocom.common.entity.company.EntityComDockApi;
import com.ocom.common.request.company.GetApiListRequest;
import com.ocom.common.vo.company.ComDockApiListVo;
import com.ocom.common.vo.company.GetDockApiConfigVo;
import com.ocom.common.vo.company.GetFeatureVersionVo;

import java.util.List;

public interface ComDockApiService extends IService<EntityComDockApi> {
	EntityComDockApi getComDockApi(String dockCode,
								   Long comId,
								   String dockApiCode,
								   Integer apiPermission);


	List<ComDockApiListVo> getComDockApiList(Long comId);

	boolean removeComDockApiByComIdAndDockCodeAndGrade(Long comId, String dockCode);

	EntityComDockApi getComDockApiInfo(String dockCode, Long comId, String dockApiCode, Integer apiPermission);

	List<GetDockApiConfigVo> getDockApiConfig(Long comId, String dockCode);

	Boolean saveDockApiConfig(EntityComDockApi entityComDockApi);

	EntityComDockApi getApiPara(Long comId, String dockApiCode);

	Boolean setApiPara(Long comId, String dockApiCode, String apiPara);

	List<EntityComDockApi> getApiList(GetApiListRequest request);

	List<GetFeatureVersionVo> getFeatureVersion(Long companyId);

}
